from tortoise.fields import CharField
from application.model import TortoiseBaseModel


class VideoModel(TortoiseBaseModel):
    """
    图片表
    """
    md5: str = CharField(max_length=32, null=False, unique=True, description="MD5(视频URL)，唯一")
    url: str = CharField(max_length=1000, null=False, description="视频URL")

    class Meta:
        table: str = "video"
        table_description: str = "视频表"
